/*
 * File:    CustomMath.c
 * Project:	HobbyPilotFirmware (HPF)
 * Author:  Wouter van Verre
 *
 * Created on February 20, 2011, 3:09 PM
 */

#include "Header.h"
/**
float MaxF(float a, float b)
{
	float result;
	if (a > b) 
		result = a;
 	else 
		result = b;

	return (result);
}

int GetSign(float a)
{
	if (a < 0)
		return 0;
	else 
		return 1;
}

float CopySign(float a, float b)
{
	if (GetSign(a) == GetSign(b))
		return a;
	else 
		return a * -1;
}
**/
